package MIPS;

public class MLabel extends Mips {
    private String str;

    public MLabel(String label) {
        super(Operate.LABEL);
        this.str = label;
    }

    public MLabel(Operate op) {
        super(op);
        this.str = "";
    }

    public String getStr() {
        return this.str;
    }

    public String toString() {
        if (!getOp().equals(Operate.LABEL)) {
            return opToString() + "\n";
        }
        return str + ":" + "\n";
    }
}
